package com.zyzd.commontools;

import android.content.Context;

/**
 * Created by LZY on 2017/6/24.
 */

public class CommonTools {
    private static Context mContext;

    public static void init(Context context) {
        mContext = context;
    }

    public static Context getContext() {
        if (mContext == null) {
            throw new RuntimeException("使用该工具库需要在应用启动时设置进行初始化");
        }
        return mContext;
    }
}
